[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 KINKEY() (STRING)

 Function
  Get the next key input from the local keyboard only.

 Syntax
  KINKEY()   No arguments are required

 Return Type and Value
  STRING
  Returns a single character for displayable characters or a string with
  the name of the function or cursor control key for cursor movement and
  function keys.

 Remarks
  This function will return a single character long string for most key
  presses.  Additionally, it will return key names for function keys and
  cursor movement keys.  It will only return keystrokes from the local BBS
  node's keyboard.  However, realize that many function keys are reserved
  by PCBoard for BBS related uses and may not be available for your
  applications that require SysOp input.

 Examples
  STRING key
  WHILE (key <> CHR(27)) DO
    LET key = KINKEY()
    IF (LEFT(key,5) = "SHIFT") THEN
      PRINTLN "It was a shifted key"
    ELSEIF (LEFT(key,4) = "CTRL") THEN
      PRINTLN "It was a control key"
    ELSEIF (LEFT(key,3) = "ALT") THEN
      PRINTLN "It was an alternate key"
    ENDIF
    PRINTLN "The key was ",key
  ENDWHILE

See Also: INKEY() MGETBYTE() MINKEY()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson